package com.i2works.smartluolong.web.service.fooddrug.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.i2works.smartluolong.utils.basecommon.BaseCommonServiceImpl;
import com.i2works.smartluolong.utils.exception.DAOException;
import com.i2works.smartluolong.utils.exception.ServiceException;
import com.i2works.smartluolong.web.dal.fooddrug.dao.IFooddrugApplyLicenseDAO;
import com.i2works.smartluolong.web.entity.fooddrug.FooddrugApplyLicenseDO;
import com.i2works.smartluolong.web.entity.fooddrug.FooddrugApplyLicenseQuery;
import com.i2works.smartluolong.web.service.fooddrug.IFooddrugApplyLicenseService;

/**
 * @author Liu Yapeng
 * @date 2018-10-73 10:07:15
 */
@Service("fooddrugApplyLicenseService")
public class FooddrugApplyLicenseServiceImpl extends BaseCommonServiceImpl<FooddrugApplyLicenseQuery,FooddrugApplyLicenseDO>implements IFooddrugApplyLicenseService {
   @Autowired
   
   private IFooddrugApplyLicenseDAO fooddrugApplyLicenseDAO;

   @Override
  public void deleteByApplyId(Integer applyId) throws ServiceException {
	   try {
		fooddrugApplyLicenseDAO.deleteByApplyId(applyId);
	} catch (DAOException e) {
		e.printStackTrace();
	}
   }

}
